import {
	ApiUtils,
	_axios
} from 'api/apiUtil.js';
import constant from 'util/constant.js';

const api = {
	selectTitle: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl+"/business/setmeal/selectTitle", request, successCallback, failCallback, exceptionCallback);
	},
	list: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl+"/business/setmeal/list", request, successCallback, failCallback, exceptionCallback);
	},
	save: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl+"/business/setmeal/save", request, successCallback, failCallback, exceptionCallback);
	},
	toUpdate: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl+"/business/setmeal/toUpdate", request, successCallback, failCallback, exceptionCallback);
	},
	update: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl+"/business/setmeal/update", request, successCallback, failCallback, exceptionCallback);
	},
	remove: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl+"/business/setmeal/remove", request, successCallback, failCallback, exceptionCallback);
	},
	ZClist: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl+"/dishes/dishes/ZClist", request, successCallback, failCallback, exceptionCallback);
	},
	
	FClist: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl+"/dishes/dishes/FClist", request, successCallback, failCallback, exceptionCallback);
	},
	
	QClist: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl+"/dishes/dishes/QClist", request, successCallback, failCallback, exceptionCallback);
	},
	ZSlist: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl+"/dishes/dishes/ZSlist", request, successCallback, failCallback, exceptionCallback);
	},
	QTlist: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl+"/dishes/dishes/QTlist", request, successCallback, failCallback, exceptionCallback);
	},
	getcompanys: (request, successCallback, failCallback, exceptionCallback) => {
		ApiUtils.sendLoadingAjax(constant.serverUrl+"/business/setmeal/company", request, successCallback, failCallback, exceptionCallback);
	},


}

export default api;
